<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>处理登录页面</title>
</head>
<body>
<%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    if ("admin".equals(username)) {
        request.setAttribute("username", username);
        request.getRequestDispatcher("main.jsp").forward(request, response);
    } else {
        request.getRequestDispatcher("login.jsp").forward(request, response);
    }
%>
</body>
</html>
